package com.why.blog.dao;

import com.why.blog.bean.Blog;

import java.util.List;

/**
 * @program: blog
 * @description:
 * @author: @why
 * @create: 2021-01-15 22:48
 **/
public interface blogDao {
    List<Blog> getListBlog();

    Blog getBlogById(Integer id);

    List<Blog> getListBlogByType(Integer typeId);

    int updateBlog(Blog blog);

    int deleteBlogById(Integer id);

    void saveBlog(Blog blog);

    int blogNums();

    List<Blog> getListBlogNoContent();

    List<Blog> getBlogByYear(String year);

    List<String> getYear();

    List<Blog> getBlogByName(String content);

    void blogViewsAutoIncrement(Integer blogId);
}
